import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Jiang Jinxi
 * Date: 2024-03-18
 * Time: 19:48
 */
public class Test5 {
    public static void main(String[] args) {
        System.out.print("输入一个整数:");
        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();
        int i = 2;
        while (true) {
            int y = x % i;
            int z = x / i;
            if(y == 0){
                System.out.print(i + ",");
                x = z;
                if(z == 1){
                    break;
                }
            }else{
                i++;
            }
        }
    }
}
